package com.crm.customers.model;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.crm.base.model.BaseModel;

/**

Create Table

CREATE TABLE `crm_contacts_dynamic_info` (
  `id` bigint(20) DEFAULT NULL,
  `cusid` bigint(20) DEFAULT NULL COMMENT '客户ID',
  `ccuid` bigint(20) DEFAULT NULL COMMENT '联系人ID',
  `state` int(11) DEFAULT NULL COMMENT '状态（0 预约  1 已联系  2 已过期  3 撤销）',
  `remark` text COMMENT '备注',
  `createdate` datetime DEFAULT NULL COMMENT '创建时间',
  `createuser` varchar(20) DEFAULT NULL COMMENT '创建人',
  `updatedate` datetime DEFAULT NULL COMMENT '修改时间',
  `updateuser` varchar(20) DEFAULT NULL COMMENT '修改人',
  `stime` datetime DEFAULT NULL COMMENT '预约起始时间',
  `etime` datetime DEFAULT NULL COMMENT '预约结束时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='联系客户动态信息表'

*/
public class ContactsDynamicInfo  extends BaseModel  {
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 4128908696528159735L;
	private Long cusid; //客户ID
	private Long ccuid;//客户联系人
	private String name;//联系人姓名
	private Integer state; //状态（0 预约  1 联系记录  2已联系）
	private String remark; //'备注
	private String stime; //预约起始时间
	private String etime; //预约结束时间
	
	private String uname;
	
    private CustomerInfo customerInfo;//客户信息
    private List<CustomerContacts> CustomerContactslist;//客户信息联系表
    
	public CustomerInfo getCustomerInfo() {
		return customerInfo;
	}
	public void setCustomerInfo(CustomerInfo customerInfo) {
		this.customerInfo = customerInfo;
	}
	public Long getCcuid() {
		return ccuid;
	}
	public void setCcuid(Long ccuid) {
		this.ccuid = ccuid;
	}
	public void setCusid(Long cusid){
		this.cusid=cusid;
	}
	public Long getCusid(){
		return cusid;
	}
	public void setState(Integer state){
		this.state=state;
	}
	public Integer getState(){
		return state;
	}
	public void setRemark(String remark){
		this.remark=remark;
	}
	public String getRemark(){
		return remark;
	}
	public void setStime(String stime){
		this.stime=stime;
	}
	public String getStime(){
		return stime;
	}
	public void setEtime(String etime){
		this.etime=etime;
	}
	public String getEtime(){
		return etime;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	public List<CustomerContacts> getCustomerContactslist() {
		return CustomerContactslist;
	}
	public void setCustomerContactslist(List<CustomerContacts> customerContactslist) {
		CustomerContactslist = customerContactslist;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
}

